package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.StatementView
import hlhj.fhp.checkpoint.javaBean.StatementBean
import hlhj.fhp.checkpoint.module.StatementModule

/**
 * Created by Never Fear   on 2018\11\22 0022.
Never More....
 */
class StatementPresenter :BasePresenter<StatementModule,StatementView>(), StatementModule.StatementListener {
    override fun statementResp(statementBean: StatementBean) {
        view?.setStatement(statementBean)
    }

    fun getStatement(c:Context){
        module?.getStatement(c)
    }
    override fun createModule() {
        module= StatementModule()
        module.listener=this
    }
}